package com.sync.data.ievent.repository;


import com.sync.data.ievent.entity.BaseCostCenter;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangrongjun
 * @version 1.0
 * @date 2023-11-16 17:12
 */
@Repository
public interface BaseCostCenterRepository extends JpaRepository<BaseCostCenter, String>, JpaSpecificationExecutor<BaseCostCenter> {

    List<BaseCostCenter> findAllByCostCenterCodeIn(List<String> costCenterCodeList);

    boolean existsByCostCenterCode(String deptId);
}
